package com.wk.code.wkserver.controller.app;

import com.wk.code.wkserver.response.admin.TechTypeResponse;
import com.wk.code.wkserver.response.app.EstimateAmountResponse;
import com.wk.code.wkserver.response.result.R;
import com.wk.code.wkserver.service.IEstimateAmountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import lombok.AllArgsConstructor;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author wq
 * @since 2021-08-18
 */
@RestController
@RequestMapping("estimate/amount")
@AllArgsConstructor
@Api(tags = "预算价格下拉列表")
public class EstimateAmountController {

    final IEstimateAmountService estimateAmountService;

    /**
     * 下拉技术类型
     *
     * @return R
     */
    @ApiOperation(value = "下拉价格类型")
    @GetMapping("/list")
    public R<List<EstimateAmountResponse>> list() {
        return R.success(estimateAmountService.acquire());
    }

}
